package com.lanxiao.cloud.common.core.dto;

import com.lanxiao.cloud.common.core.enums.SexEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;

/**
 * @author ：qiaoliang
 * @date ：2021-09-13
 */
@ApiModel("用户信息返回模型")
public class UserBaseDto<T> extends Dto<T> {
  @ApiModelProperty(value = "昵称")
  private final String name;
  @ApiModelProperty(value = "性别")
  private final SexEnum sex;
  @ApiModelProperty(value = "手机号")
  private final String phone;
  @ApiModelProperty(value = "头像")
  private final String portrait;

  public UserBaseDto(T id, String name, SexEnum sex, String phone, String portrait) {
    super(id);
    this.name = name;
    this.sex = sex;
    this.phone = phone;
    this.portrait = portrait;
  }

  public String getName() {
    return name;
  }

  public SexEnum getSex() {
    return sex;
  }

  public String getPhone() {
    return phone;
  }

  public String getPortrait() {
    return portrait;
  }

}
